using System;

namespace Needle.Core.Activation {
    /// <summary>
    /// Thrown when a cyclic dependency which would cause an infinite loop has been detected.
    /// </summary>
    [global::System.Serializable]
    public class CyclicDependencyException : NeedleException {
        /// <summary>
        /// Initializes a new instance of CyclicDependencyException.
        /// </summary>
        public CyclicDependencyException() { }
        /// <summary>
        /// Initializes a new instance of CyclicDependencyException.
        /// </summary>
        public CyclicDependencyException(string message) : base(message) { }
        /// <summary>
        /// Initializes a new instance of CyclicDependencyException.
        /// </summary>
        public CyclicDependencyException(string message, Exception inner) : base(message, inner) { }
        /// <summary>
        /// Initializes a new instance of CyclicDependencyException.
        /// </summary>
        protected CyclicDependencyException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }

    }
}
